package com.yanqu.road.entity.log.cross.tongbing.normal;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_tongbing_log_city_event", desc = "普通统兵-城池事件日志", autoSave = true, uploadCk = true, isCross = true)
public class LogTongBingCityEvent extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "类型，1刷新，2生效")
    private int type;
    @FieldTypeAnnotation(desc = "配置时间")
    private long configTime;
    @FieldTypeAnnotation(desc = "城池ID")
    private int cityId;
    @FieldTypeAnnotation(desc = "详情")
    private String detail;

    @FieldTypeAnnotation(desc = "商会活动分组ID")
    private int groupId;

    public LogTongBingCityEvent(int activityId, int type, long configTime, int cityId, String detail, int groupId) {
        this.activityId = activityId;
        this.type = type;
        this.configTime = configTime;
        this.cityId = cityId;
        this.detail = detail;
        this.groupId = groupId;
    }

    @Override
    public long getUserId() {
        return 0;
    }
}
